<template>
  <header>
    <i class="iconfont icon-fanhui" @click="$router.back()"></i>
    <span>
      <slot></slot>
    </span>
  </header>
</template>

<script setup>
</script>

<style lang="less" scoped>
header {
  display: flex;
  align-items: center;
  height: 45px;
  background-color: #b0352f;
  color: #fff;
  position: relative;

  .icon-fanhui {
    font-size: 28px;
    width: 45px;
    line-height: 45px;
    text-align: center;
  }

  span {
    font-size: 16px;
    line-height: 45px;
    text-align: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
}
</style>